package com.jbinfo.mgosql.operation.company.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jbinfo.mgosql.operation.company.dao.CompanyDao;
import com.jbinfo.mgosql.operation.company.model.Company;
import com.jbinfo.mgosql.operation.company.service.CompanyService;

import net.siufung.boot.mybatis.intercetpor.Pagination;

@Service("companyService")
@Transactional
public class CompanyServiceImpl implements CompanyService {
	
	@Autowired
	private CompanyDao companyDao;
	
	@Override
	public Company findByUid(String key) {
		return null;
	}

	@Override
	public List<Company> findList() {
		return companyDao.findList();
	}

	/*@Override
	public void insert(Company company) {
		companyDao.insert(company);
	}*/

	/*@Override
	public Pagination<Company> getPage(Company company) {
		Pagination<Company> pager=new Pagination<Company>(company.getPageSize(), company.getPageIndex());
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("paging", pager);
		map.put("o", company);
		List<Company> objectList=companyDao.queryForPage(map);
		pager.setRecords(objectList);
		return pager;
	}*/

}
